package com.cloud.service.impl;

import com.cloud.domain.TOrder;
import com.cloud.service.IOrderService;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/7/1 16:27
 * @Desc
 * @Remarks
 */
@Component
public class OrderServiceFallback implements IOrderService {
    @Override
    public TOrder getById(Long id) {
        System.out.println("feign接口调用服务异常！");
        return null;
    }

    @Override
    public boolean save(TOrder tOrder) {
        System.out.println("feign接口调用服务异常！");
        return false;
    }

    @Override
    public boolean delete(Long id) {
        System.out.println("feign接口调用服务异常！");
        return false;
    }

    @Override
    public boolean update(TOrder tOrder) {
        System.out.println("feign接口调用服务异常！");
        return false;
    }
    @Override
    public PageInfo<TOrder> listByPage(TOrder tOrder) {
        System.out.println("feign接口调用服务异常！");
        return null;
    }
    @Override
    public List<TOrder> listAll() {
        System.out.println("feign接口调用服务异常！");
        return null;
    }

    @Override
    public TOrder timeout(Long id) {
        System.out.println("feign接口调用服务异常！");
        return null;
    }
}
